# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test04
# Description:   例8.4
# Author:       ASUS
# Date:         2019/3/11
#-------------------------------------------------------------------------------


# 父类
class ParentClass:
    def method1(self):
        print("method1")

# 子类
class ChildClass(ParentClass):
    def method2(self):
        print("method2")

child = ChildClass()
child.method1()                         #调用父类方法
child.method2()



